// const mysql=require('mysql');
// const conn=mysql.createConnection({
//     host:'127.0.0.1',
//     user:'root',
//     password:'root',
//     database:'albx'
// });
const conn=require('../utils/sqlMethods.js');
module.exports={
    userLogin(email,callback){
        let sql='select * from users where email=?';
        conn.query(sql,[email],(err,result)=>{
            if(err)return callback(err);
            return callback(null,result[0]);
        })
    }
}